package com.github.pig.admin.service.zhgl.building.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.github.pig.admin.mapper.zhgl.building.CommunityBuildingMapper;
import com.github.pig.admin.model.zhgl.building.CommunityBuilding;
import com.github.pig.admin.model.zhgl.building.CommunityBuildingTree;
import com.github.pig.admin.service.zhgl.building.ICommunityBuildingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * ���ݻ�����Ϣ 服务实现类
 * </p>
 *
 * @author xiaosa
 * @since 2018-06-04
 */
@Service
public class CommunityBuildingServiceImpl extends ServiceImpl<CommunityBuildingMapper,CommunityBuilding> implements ICommunityBuildingService {

    @Autowired
    private CommunityBuildingMapper communityBuildingMapper;

    @Override
    public boolean deleteMy(String id) {
        communityBuildingMapper.deleteMy(id);
        return true;
    }

    @Override
    public List<CommunityBuildingTree> initCommunityBuildingTree() {
        return null;
    }

    @Override
    public CommunityBuilding selectBuildingByHouseId(String houseId) {
        return communityBuildingMapper.selectBuildingByHouseId(houseId);
    }
}
